package Dziedziczenie;

public class TestClass {
	public static void main(String[] args) {
		// Audi audi = new Audi();
		// Opel opel = new Opel();
		// showCars(audi);
		// showCars(opel);

		Object o1 = new Audi();
		Animatable a1 = new Audi();
		Car c1 = new Audi();
		Audi au1 = new Audi();

		c1.showCar();
		au1.animate();
		au1.showCar();
		a1.animate();

	}

	// public static void showCars(Car car) {
	// car.showCar();
	// }
}
